package com.link.base.loyalty.member.model;

import com.link.core.basic.model.BasicModel;

/**
 * Model 会员
 * @author weixuan
 */
public class Member extends BasicModel {

    private String password;            /*登录密码*/
    private String email;                /*邮箱*/
    private String gender;                /*性别*/
    private String mobilePhone;            /*手机号*/
    private String programName;            /*注册的项目*/
    private Long programId;            /*注册的项目Id*/
    private String memberNumber;        /*会员编号*/
    private String memberType;            /*会员类型,值列表类型: LYT_MEMBER_TYPE */
    private String name;                /*会员名称*/
    private Long accountId;            /*客户Id*/
    private String accountName;            /*客户*/
    private String startDate;            /*注册日期*/
    private String accrualType;            /*应计类型,值列表类型: LYT_ACCRUAL_TYP */
    private String status;                /*状态,值列表类型: LYT_MEMBER_STATUS */
    private String expirationDate;        /*截止日期*/
    private String relationshipType;    /*关系类型,值列表类型: LYT_REL_TYE */
    private String referredByName;        /*推荐者*/
    private String valueScore;            /*价值评分*/
    private String parentMemberName;    /*父成员*/
    private Long parentMemberId;        /*父成员Id*/
    private String partnerSourceName;    /*合作方来源*/
    private Long partnerId;            /*合作方来源Id*/
    private String memberKey;            /*会员关键字*/
    private String x_attr_01;            /*初始化会员标识*/
    private Long referredById;        /*推荐者Id*/
    private Long memCardId;        /*会员卡Id*/
    private String memCardNo;        /*会员卡编号*/
    private String wxOpenid;        /*微信openId*/
    private String memberTier;           /*会员级别*/
    private String cancelNumber;         /*注销手机号*/
    private String totalPoint;           /*集团可用积分*/
    private String regChannel;           /*注册渠道*/
    private Long salesAssisId;         /*推荐导购ID*/
    private String salesAssisName;       /*推荐导购姓名*/
    private String acctName;       /*姓名*/
    private String birthday;       /*生日*/
    private String memCategory;       /*会员类别*/
    private String unionId;                 /*微信unionId*/
    private String openId;                    /*openId*/
    /**微信APPid*/
    private String wxAppId;
    /**会员有效等级*/
    private String memberTierName;




    private String cardNumber;     /*会员卡号*/

    private String signInDate;        /*签到日期*/
    private int signInTimes;        /*连续签到次数*/
    private String formId;        /*小程序发消息需要用到*/


    public String getSignInDate() {
        return signInDate;
    }

    public void setSignInDate(String signInDate) {
        this.signInDate = signInDate;
    }

    public int getSignInTimes() {
        return signInTimes;
    }

    public void setSignInTimes(int signInTimes) {
        this.signInTimes = signInTimes;
    }

    public String getWxOpenid() {
        return wxOpenid;
    }

    public void setWxOpenid(String wxOpenid) {
        this.wxOpenid = wxOpenid;
    }

    public Long getMemCardId() {
        return memCardId;
    }

    public void setMemCardId(Long memCardId) {
        this.memCardId = memCardId;
    }

    public String getMemCardNo() {
        return memCardNo;
    }

    public void setMemCardNo(String memCardNo) {
        this.memCardNo = memCardNo;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getProgramName() {
        return programName;
    }

    public void setProgramName(String programName) {
        this.programName = programName;
    }

    public String getMemberNumber() {
        return memberNumber;
    }

    public void setMemberNumber(String memberNumber) {
        this.memberNumber = memberNumber;
    }

    public String getMemberType() {
        return memberType;
    }

    public void setMemberType(String memberType) {
        this.memberType = memberType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getStartDate() {
        int startDateLen = 10;
        if (startDate != null && startDate.length() > startDateLen) {
            return startDate.substring(0, 10);
        }
        return startDate;
    }

    public void setStartDate(String startDate) {
        int startDateLen = 10;
        if (startDate != null && startDate.length() > startDateLen) {
            startDate = startDate.substring(0, 10);
        }
        this.startDate = startDate;
    }

    public String getAccrualType() {
        return accrualType;
    }

    public void setAccrualType(String accrualType) {
        this.accrualType = accrualType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getExpirationDate() {
        int  expirationDateLen = 10;
        if (expirationDate != null && expirationDate.length() > expirationDateLen) {
            return expirationDate.substring(0, 10);
        }
        return expirationDate;
    }

    public void setExpirationDate(String expirationDate) {
        int  expirationDateLen = 10;
        if (expirationDate != null && expirationDate.length() > expirationDateLen) {
            expirationDate = expirationDate.substring(0, 10);
        }
        this.expirationDate = expirationDate;
    }

    public String getRelationshipType() {
        return relationshipType;
    }

    public void setRelationshipType(String relationshipType) {
        this.relationshipType = relationshipType;
    }

    public String getReferredByName() {
        return referredByName;
    }

    public void setReferredByName(String referredByName) {
        this.referredByName = referredByName;
    }

    public String getValueScore() {
        return valueScore;
    }

    public void setValueScore(String valueScore) {
        this.valueScore = valueScore;
    }

    public String getParentMemberName() {
        return parentMemberName;
    }

    public void setParentMemberName(String parentMemberName) {
        this.parentMemberName = parentMemberName;
    }

    public Long getParentMemberId() {
        return parentMemberId;
    }

    public void setParentMemberId(Long parentMemberId) {
        this.parentMemberId = parentMemberId;
    }

    public String getPartnerSourceName() {
        return partnerSourceName;
    }

    public void setPartnerSourceName(String partnerSourceName) {
        this.partnerSourceName = partnerSourceName;
    }

    public String getMemberKey() {
        return memberKey;
    }

    public void setMemberKey(String memberKey) {
        this.memberKey = memberKey;
    }

    public String getX_attr_01() {
        return x_attr_01;
    }

    public void setX_attr_01(String x_attr_01) {
        this.x_attr_01 = x_attr_01;
    }

    public String getMemberTier() {
        return memberTier;
    }

    public void setMemberTier(String memberTier) {
        this.memberTier = memberTier;
    }

    public String getCancelNumber() {
        return cancelNumber;
    }

    public void setCancelNumber(String cancelNumber) {
        this.cancelNumber = cancelNumber;
    }

    public String getTotalPoint() {
        return totalPoint;
    }

    public void setTotalPoint(String totalPoint) {
        this.totalPoint = totalPoint;
    }

    public String getRegChannel() {
        return regChannel;
    }

    public void setRegChannel(String regChannel) {
        this.regChannel = regChannel;
    }

    public String getSalesAssisName() {
        return salesAssisName;
    }

    public void setSalesAssisName(String salesAssisName) {
        this.salesAssisName = salesAssisName;
    }

    public Long getProgramId() {
        return programId;
    }

    public void setProgramId(Long programId) {
        this.programId = programId;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public Long getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(Long partnerId) {
        this.partnerId = partnerId;
    }

    public Long getReferredById() {
        return referredById;
    }

    public void setReferredById(Long referredById) {
        this.referredById = referredById;
    }

    public Long getSalesAssisId() {
        return salesAssisId;
    }

    public void setSalesAssisId(Long salesAssisId) {
        this.salesAssisId = salesAssisId;
    }

    public String getAcctName() {
        return acctName;
    }

    public void setAcctName(String acctName) {
        this.acctName = acctName;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getMemCategory() {
        return memCategory;
    }

    public void setMemCategory(String memCategory) {
        this.memCategory = memCategory;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getWxAppId() {
        return wxAppId;
    }

    public void setWxAppId(String wxAppId) {
        this.wxAppId = wxAppId;
    }

    public String getMemberTierName() {
        return memberTierName;
    }

    public void setMemberTierName(String memberTierName) {
        this.memberTierName = memberTierName;
    }

    public String getFormId() {
        return formId;
    }

    public void setFormId(String formId) {
        this.formId = formId;
    }
}
